home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / holdsize / _setup.1 / example.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1998-10-02  |  1.3 KB  |  44 lines

  1. VERSION 5.00
  2. Object = "{20BB8A98-5A0A-11D2-A460-008029E79FA1}#6.0#0"; "HOLDSIZE.OCX"
  3. Begin VB.Form Example 
  4.    Caption         =   "Form1"
  5.    ClientHeight    =   2910
  6.    ClientLeft      =   3645
  7.    ClientTop       =   4335
  8.    ClientWidth     =   3960
  9.    LinkTopic       =   "Form1"
  10.    ScaleHeight     =   194
  11.    ScaleMode       =   3  'Pixel
  12.    ScaleWidth      =   264
  13.    StartUpPosition =   3  'Windows Default
  14.    Begin HoldSize.HoldSizeControl HoldSize 
  15.       Left            =   2400
  16.       Top             =   480
  17.       _ExtentX        =   979
  18.       _ExtentY        =   979
  19.       MinimumWidth    =   200
  20.       MaximumWidth    =   200
  21.       MinimumHeight   =   200
  22.       MaximumHeight   =   200
  23.    End
  24.    Begin VB.CommandButton Command1 
  25.       Caption         =   "Toggle Hold Size"
  26.       Height          =   375
  27.       Left            =   240
  28.       TabIndex        =   0
  29.       Top             =   480
  30.       Width           =   1455
  31.    End
  32. Attribute VB_Name = "Example"
  33. Attribute VB_GlobalNameSpace = False
  34. Attribute VB_Creatable = False
  35. Attribute VB_PredeclaredId = True
  36. Attribute VB_Exposed = False
  37. Option Explicit
  38. Private Sub Command1_Click()
  39.     ' Toggle the current hold size activation.
  40.     HoldSize.Toggle
  41.     ' Send a message box to show what the current state is.
  42.     MsgBox HoldSize.IsActive
  43. End Sub
  44.